package icu.yougan.trade.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.util.Date;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class ChatMessage {
    private Long id;
    private Long sender; // 发送者账号
    private Long receiver; // 接收者账号
    private Long itemId; // 关联商品ID（可为null）
    private String content; // 消息内容
    private Date createTime; // 创建时间
    private Integer messageType; // 消息类型
    private Boolean isRead = false; // 是否已读

    private Boolean status;
    private Integer unreadCount=0;//获取未读条数字
    private String senderName;//作为前端交互的名字
    private String senderAvatar;
    private String receiverName;
    private String ReceiverAvatar;

}